<?php
const host="b-c7gjozzeevy2wn.bch.rds.gz.baidubce.com";
const user="b_c7gjozzeevy2wn";
const pwd="12345678";
const dbName="b_c7gjozzeevy2wn";
$conn=mysqli_connect(host,user,pwd,dbName);
if(!$conn){
    exit("数据库连接失败");
}
  mysqli_query($conn,"set names utf8"); 
  mysqli_query($conn,"set character set utf-8"); 
?>